n = 23

print( (n + 1) if (n+1) < 24 else 0)